<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: WireIt   WiringEditor.js </title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css?stamp=" />
	<link rel="stylesheet" type="text/css" href="assets/api.css?stamp=" />

    <script type="text/javascript" src="assets/api-js?stamp="></script>
    <script type="text/javascript" src="assets/ac-js?stamp="></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://javascript.neyric.com/wireit" title="WireItLibrary">WireItLibrary</a></h1>
        <h3>WireIt&nbsp; <span class="subtitle">0.5.0</span></h3>
        <a href="./index.html" title="WireItLibrary">WireItLibrary</a> 
            &gt; <a href="./module_wireit.html" title="WireIt">WireIt</a>
                
                 &gt; WiringEditor.js (source view) 
        <form onsubmit="return false">
            <div id="propertysearch">
                Search: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <div id="srcout">
                        <style>
                            #doc3 .classopts { display:none; }
                        </style>
<div class="highlight"><pre><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="kd">var</span> <span class="nx">util</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="o">,</span><span class="nx">lang</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="o">;</span>
    <span class="kd">var</span> <span class="nx">Event</span> <span class="o">=</span> <span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="o">,</span> <span class="nx">Dom</span> <span class="o">=</span> <span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="o">,</span> <span class="nx">Connect</span> <span class="o">=</span> <span class="nx">util</span><span class="p">.</span><span class="nx">Connect</span><span class="o">,</span><span class="nx">JSON</span> <span class="o">=</span> <span class="nx">lang</span><span class="p">.</span><span class="nx">JSON</span><span class="o">,</span><span class="nx">widget</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="o">;</span>


<span class="c">/**</span>
<span class="c"> * Module Proxy handle the drag/dropping from the module list to the layer (in the WiringEditor)</span>
<span class="c"> * @class ModuleProxy</span>
<span class="c"> * @constructor</span>
<span class="c"> * @param {HTMLElement} el</span>
<span class="c"> * @param {WireIt.WiringEditor} WiringEditor</span>
<span class="c"> */</span>
<span class="nx">WireIt</span><span class="p">.</span><span class="nx">ModuleProxy</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">el</span><span class="o">,</span> <span class="nx">WiringEditor</span><span class="p">)</span> <span class="p">{</span>
   
   <span class="k">this</span><span class="p">.</span><span class="nx">_WiringEditor</span> <span class="o">=</span> <span class="nx">WiringEditor</span><span class="o">;</span>
   
   <span class="c">// Init the DDProxy</span>
   <span class="nx">WireIt</span><span class="p">.</span><span class="nx">ModuleProxy</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">constructor</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="o">,</span><span class="nx">el</span><span class="o">,</span> <span class="s2">&quot;module&quot;</span><span class="o">,</span> <span class="p">{</span>
        <span class="nx">dragElId</span><span class="o">:</span> <span class="s2">&quot;moduleProxy&quot;</span>
    <span class="p">});</span>
    
    <span class="k">this</span><span class="p">.</span><span class="nx">isTarget</span> <span class="o">=</span> <span class="kc">false</span><span class="o">;</span> 
<span class="p">};</span>
<span class="nx">YAHOO</span><span class="p">.</span><span class="nx">extend</span><span class="p">(</span><span class="nx">WireIt</span><span class="p">.</span><span class="nx">ModuleProxy</span><span class="o">,</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">DDProxy</span><span class="o">,</span> <span class="p">{</span>
   
   <span class="c">/**</span>
<span class="c">    * copy the html and apply selected classes</span>
<span class="c">    * @method startDrag</span>
<span class="c">    */</span>
   <span class="nx">startDrag</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">WireIt</span><span class="p">.</span><span class="nx">ModuleProxy</span><span class="p">.</span><span class="nx">superclass</span><span class="p">.</span><span class="nx">startDrag</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="k">this</span><span class="o">,</span><span class="nx">e</span><span class="p">);</span>
       <span class="kd">var</span> <span class="nx">del</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getDragEl</span><span class="p">()</span><span class="o">,</span>
			  <span class="nx">lel</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getEl</span><span class="p">();</span>
       <span class="nx">del</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">lel</span><span class="p">.</span><span class="nx">innerHTML</span><span class="o">;</span>
       <span class="nx">del</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="nx">lel</span><span class="p">.</span><span class="nx">className</span><span class="o">;</span>
   <span class="p">}</span><span class="o">,</span>
   
   <span class="c">/**</span>
<span class="c">    * Override default behavior of DDProxy</span>
<span class="c">    * @method endDrag</span>
<span class="c">    */</span>
   <span class="nx">endDrag</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{}</span><span class="o">,</span>
    
   <span class="c">/**</span>
<span class="c">    * Add the module to the WiringEditor on drop on layer</span>
<span class="c">    * @method onDragDrop</span>
<span class="c">    */</span>
   <span class="nx">onDragDrop</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="o">,</span> <span class="nx">ddTargets</span><span class="p">)</span> <span class="p">{</span> 
      <span class="c">// The layer is the only target :</span>
      <span class="kd">var</span> <span class="nx">layerTarget</span> <span class="o">=</span> <span class="nx">ddTargets</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">,</span>
			 <span class="nx">layer</span> <span class="o">=</span> <span class="nx">ddTargets</span><span class="p">[</span><span class="mi">0</span><span class="p">].</span><span class="nx">_layer</span><span class="o">,</span>
			 <span class="nx">del</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getDragEl</span><span class="p">()</span><span class="o">,</span>
			 <span class="nx">pos</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">getXY</span><span class="p">(</span><span class="nx">del</span><span class="p">)</span><span class="o">,</span>
			 <span class="nx">layerPos</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">getXY</span><span class="p">(</span><span class="nx">layer</span><span class="p">.</span><span class="nx">el</span><span class="p">);</span>
      <span class="k">this</span><span class="p">.</span><span class="nx">_WiringEditor</span><span class="p">.</span><span class="nx">addModule</span><span class="p">(</span> <span class="k">this</span><span class="p">.</span><span class="nx">_module</span> <span class="o">,</span><span class="p">[</span><span class="nx">pos</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">-</span><span class="nx">layerPos</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">+</span><span class="nx">layer</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">scrollLeft</span><span class="o">,</span> <span class="nx">pos</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">-</span><span class="nx">layerPos</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">+</span><span class="nx">layer</span><span class="p">.</span><span class="nx">el</span><span class="p">.</span><span class="nx">scrollTop</span><span class="p">]);</span>
    <span class="p">}</span>
   
<span class="p">});</span>


<span class="c">/**</span>
<span class="c"> * The WiringEditor class provides a full page interface </span>
<span class="c"> * @class WiringEditor</span>
<span class="c"> * @constructor</span>
<span class="c"> * @param {Object} options</span>
<span class="c"> */</span>
<span class="nx">WireIt</span><span class="p">.</span><span class="nx">WiringEditor</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">options</span><span class="p">)</span> <span class="p">{</span>
	
	 <span class="c">/**</span>
<span class="c">	  * Hash object to reference module definitions by their name</span>
<span class="c">	  * @property modulesByName</span>
<span class="c">	  * @type {Object}</span>
<span class="c">	  */</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">modulesByName</span> <span class="o">=</span> <span class="p">{};</span>

    <span class="c">// set the default options</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">setOptions</span><span class="p">(</span><span class="nx">options</span><span class="p">);</span>
    
    <span class="c">/**</span>
<span class="c">     * Container DOM element</span>
<span class="c">     * @property el</span>
<span class="c">     */</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="nx">options</span><span class="p">.</span><span class="nx">parentEl</span><span class="p">);</span>
    
    <span class="c">/**</span>
<span class="c">     * @property helpPanel</span>
<span class="c">     * @type {YAHOO.widget.Panel}</span>
<span class="c">     */</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">helpPanel</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">widget</span><span class="p">.</span><span class="nx">Panel</span><span class="p">(</span><span class="s1">&#39;helpPanel&#39;</span><span class="o">,</span> <span class="p">{</span>
        <span class="nx">fixedcenter</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
        <span class="nx">draggable</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
        <span class="nx">visible</span><span class="o">:</span> <span class="kc">false</span><span class="o">,</span>
        <span class="nx">modal</span><span class="o">:</span> <span class="kc">true</span>
     <span class="p">});</span>
     <span class="k">this</span><span class="p">.</span><span class="nx">helpPanel</span><span class="p">.</span><span class="nx">render</span><span class="p">();</span>
	
    
    <span class="c">/**</span>
<span class="c">     * @property layout</span>
<span class="c">     * @type {YAHOO.widget.Layout}</span>
<span class="c">     */</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">layout</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">widget</span><span class="p">.</span><span class="nx">Layout</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layoutOptions</span><span class="p">);</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">layout</span><span class="p">.</span><span class="nx">render</span><span class="p">();</span>

	 <span class="c">// Right accordion</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">renderAccordion</span><span class="p">();</span>

    <span class="c">/**</span>
<span class="c">     * @property layer</span>
<span class="c">     * @type {WireIt.Layer}</span>
<span class="c">     */</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">layer</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">Layer</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layerOptions</span><span class="p">);</span>
	 <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">eventChanged</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">onLayerChanged</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>

	 <span class="c">/**</span>
<span class="c">	  * @property leftEl</span>
<span class="c">	  * @type {DOMElement}</span>
<span class="c">	  */</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">leftEl</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;left&#39;</span><span class="p">);</span>

    <span class="c">// Render module list</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">buildModulesList</span><span class="p">();</span>

    <span class="c">// Render buttons</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">renderButtons</span><span class="p">();</span>

 	 <span class="c">// Saved status</span>
	 <span class="k">this</span><span class="p">.</span><span class="nx">renderSavedStatus</span><span class="p">();</span>

    <span class="c">// Properties Form</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">renderPropertiesForm</span><span class="p">();</span>

	 <span class="c">// LoadWirings</span>
	 <span class="k">if</span><span class="p">(</span> <span class="k">this</span><span class="p">.</span><span class="nx">adapter</span><span class="p">.</span><span class="nx">init</span> <span class="o">&amp;&amp;</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">adapter</span><span class="p">.</span><span class="nx">init</span><span class="p">)</span> <span class="p">)</span> <span class="p">{</span>
			<span class="k">this</span><span class="p">.</span><span class="nx">adapter</span><span class="p">.</span><span class="nx">init</span><span class="p">();</span>
 	 <span class="p">}</span>
	 <span class="k">this</span><span class="p">.</span><span class="nx">load</span><span class="p">();</span>
<span class="p">};</span>

<span class="nx">WireIt</span><span class="p">.</span><span class="nx">WiringEditor</span><span class="p">.</span><span class="nx">prototype</span> <span class="o">=</span> <span class="p">{</span>

 <span class="c">/**</span>
<span class="c">  * @method setOptions</span>
<span class="c">  * @param {Object} options</span>
<span class="c">  */</span>
 <span class="nx">setOptions</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">options</span><span class="p">)</span> <span class="p">{</span>
    
    <span class="c">/**</span>
<span class="c">     * @property options</span>
<span class="c">     * @type {Object}</span>
<span class="c">     */</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">options</span> <span class="o">=</span> <span class="p">{};</span>
    
    <span class="c">// Load the modules from options</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">modules</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">modules</span> <span class="o">||</span> <span class="p">[];</span>
    <span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">modules</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
       <span class="kd">var</span> <span class="nx">m</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">modules</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
       <span class="k">this</span><span class="p">.</span><span class="nx">modulesByName</span><span class="p">[</span><span class="nx">m</span><span class="p">.</span><span class="nx">name</span><span class="p">]</span> <span class="o">=</span> <span class="nx">m</span><span class="o">;</span>
    <span class="p">}</span>

	 <span class="k">this</span><span class="p">.</span><span class="nx">adapter</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">adapter</span> <span class="o">||</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">WiringEditor</span><span class="p">.</span><span class="nx">adapters</span><span class="p">.</span><span class="nx">JsonRpc</span><span class="o">;</span>
     
    <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">languageName</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">languageName</span> <span class="o">||</span> <span class="s1">&#39;anonymousLanguage&#39;</span><span class="o">;</span>
    
    <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">propertiesFields</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">propertiesFields</span> <span class="o">||</span> <span class="p">[</span>
		<span class="p">{</span><span class="s2">&quot;type&quot;</span><span class="o">:</span> <span class="s2">&quot;string&quot;</span><span class="o">,</span> <span class="nx">inputParams</span><span class="o">:</span> <span class="p">{</span><span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="s2">&quot;name&quot;</span><span class="o">,</span> <span class="kd">label</span><span class="o">:</span> <span class="s2">&quot;Title&quot;</span><span class="o">,</span> <span class="nx">typeInvite</span><span class="o">:</span> <span class="s2">&quot;Enter a title&quot;</span> <span class="p">}</span> <span class="p">}</span><span class="o">,</span>
		<span class="p">{</span><span class="s2">&quot;type&quot;</span><span class="o">:</span> <span class="s2">&quot;text&quot;</span><span class="o">,</span> <span class="nx">inputParams</span><span class="o">:</span> <span class="p">{</span><span class="s2">&quot;name&quot;</span><span class="o">:</span> <span class="s2">&quot;description&quot;</span><span class="o">,</span> <span class="kd">label</span><span class="o">:</span> <span class="s2">&quot;Description&quot;</span><span class="o">,</span> <span class="nx">cols</span><span class="o">:</span> <span class="mi">30</span><span class="o">,</span> <span class="nx">rows</span><span class="o">:</span> <span class="mi">4</span><span class="p">}</span> <span class="p">}</span>
	 <span class="p">];</span>
    
    <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layoutOptions</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">layoutOptions</span> <span class="o">||</span> <span class="p">{</span>
	 	<span class="nx">units</span><span class="o">:</span> <span class="p">[</span>
	   	<span class="p">{</span> <span class="nx">position</span><span class="o">:</span> <span class="s1">&#39;top&#39;</span><span class="o">,</span> <span class="nx">height</span><span class="o">:</span> <span class="mi">50</span><span class="o">,</span> <span class="nx">body</span><span class="o">:</span> <span class="s1">&#39;top&#39;</span><span class="p">}</span><span class="o">,</span>
	      <span class="p">{</span> <span class="nx">position</span><span class="o">:</span> <span class="s1">&#39;left&#39;</span><span class="o">,</span> <span class="nx">width</span><span class="o">:</span> <span class="mi">200</span><span class="o">,</span> <span class="nx">resize</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span> <span class="nx">body</span><span class="o">:</span> <span class="s1">&#39;left&#39;</span><span class="o">,</span> <span class="nx">gutter</span><span class="o">:</span> <span class="s1">&#39;5px&#39;</span><span class="o">,</span> <span class="nx">collapse</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span> 
	        <span class="nx">collapseSize</span><span class="o">:</span> <span class="mi">25</span><span class="o">,</span> <span class="nx">header</span><span class="o">:</span> <span class="s1">&#39;Modules&#39;</span><span class="o">,</span> <span class="nx">scroll</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span> <span class="nx">animate</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span><span class="o">,</span>
	      <span class="p">{</span> <span class="nx">position</span><span class="o">:</span> <span class="s1">&#39;center&#39;</span><span class="o">,</span> <span class="nx">body</span><span class="o">:</span> <span class="s1">&#39;center&#39;</span><span class="o">,</span> <span class="nx">gutter</span><span class="o">:</span> <span class="s1">&#39;5px&#39;</span> <span class="p">}</span><span class="o">,</span>
	      <span class="p">{</span> <span class="nx">position</span><span class="o">:</span> <span class="s1">&#39;right&#39;</span><span class="o">,</span> <span class="nx">width</span><span class="o">:</span> <span class="mi">320</span><span class="o">,</span> <span class="nx">resize</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span> <span class="nx">body</span><span class="o">:</span> <span class="s1">&#39;right&#39;</span><span class="o">,</span> <span class="nx">gutter</span><span class="o">:</span> <span class="s1">&#39;5px&#39;</span><span class="o">,</span> <span class="nx">collapse</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span> 
	        <span class="nx">collapseSize</span><span class="o">:</span> <span class="mi">25</span><span class="o">,</span> <span class="c">/*header: &#39;Properties&#39;, scroll: true,*/</span> <span class="nx">animate</span><span class="o">:</span> <span class="kc">true</span> <span class="p">}</span>
	   <span class="p">]</span>
	<span class="p">};</span>
     
    <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layerOptions</span> <span class="o">=</span> <span class="p">{};</span>
    <span class="kd">var</span> <span class="nx">layerOptions</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">layerOptions</span> <span class="o">||</span> <span class="p">{};</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layerOptions</span><span class="p">.</span><span class="nx">parentEl</span> <span class="o">=</span> <span class="nx">layerOptions</span><span class="p">.</span><span class="nx">parentEl</span> <span class="o">?</span> <span class="nx">layerOptions</span><span class="p">.</span><span class="nx">parentEl</span> <span class="o">:</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;center&#39;</span><span class="p">);</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layerOptions</span><span class="p">.</span><span class="nx">layerMap</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isUndefined</span><span class="p">(</span><span class="nx">layerOptions</span><span class="p">.</span><span class="nx">layerMap</span><span class="p">)</span> <span class="o">?</span> <span class="kc">true</span> <span class="o">:</span> <span class="nx">layerOptions</span><span class="p">.</span><span class="nx">layerMap</span><span class="o">;</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layerOptions</span><span class="p">.</span><span class="nx">layerMapOptions</span> <span class="o">=</span> <span class="nx">layerOptions</span><span class="p">.</span><span class="nx">layerMapOptions</span> <span class="o">||</span> <span class="p">{</span> <span class="nx">parentEl</span><span class="o">:</span> <span class="s1">&#39;layerMap&#39;</span> <span class="p">};</span>

	 <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">accordionViewParams</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">accordionViewParams</span> <span class="o">||</span> <span class="p">{</span>
												<span class="nx">collapsible</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span> 
												<span class="nx">expandable</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span> <span class="c">// remove this parameter to open only one panel at a time</span>
												<span class="nx">width</span><span class="o">:</span> <span class="s1">&#39;308px&#39;</span><span class="o">,</span> 
												<span class="nx">expandItem</span><span class="o">:</span> <span class="mi">0</span><span class="o">,</span> 
												<span class="nx">animationSpeed</span><span class="o">:</span> <span class="s1">&#39;0.3&#39;</span><span class="o">,</span> 
												<span class="nx">animate</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span> 
												<span class="nx">effect</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Easing</span><span class="p">.</span><span class="nx">easeBothStrong</span>
											<span class="p">};</span>
 <span class="p">}</span><span class="o">,</span>

	
	<span class="c">/**</span>
<span class="c">	 * Render the accordion using yui-accordion</span>
<span class="c">  	 */</span>
	<span class="nx">renderAccordion</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">accordionView</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">widget</span><span class="p">.</span><span class="nx">AccordionView</span><span class="p">(</span><span class="s1">&#39;accordionView&#39;</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">accordionViewParams</span><span class="p">);</span>
	<span class="p">}</span><span class="o">,</span>
 
 <span class="c">/**</span>
<span class="c">  * Render the properties form</span>
<span class="c">  * @method renderPropertiesForm</span>
<span class="c">  */</span>
 <span class="nx">renderPropertiesForm</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">propertiesForm</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">inputEx</span><span class="p">.</span><span class="nx">Group</span><span class="p">({</span>
       <span class="nx">parentEl</span><span class="o">:</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;propertiesForm&#39;</span><span class="p">)</span><span class="o">,</span>
       <span class="nx">fields</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">propertiesFields</span>
    <span class="p">});</span>

	<span class="k">this</span><span class="p">.</span><span class="nx">propertiesForm</span><span class="p">.</span><span class="nx">updatedEvt</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">markUnsaved</span><span class="p">();</span>
	<span class="p">}</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
 <span class="p">}</span><span class="o">,</span>
 
 <span class="c">/**</span>
<span class="c">  * Build the left menu on the left</span>
<span class="c">  * @method buildModulesList</span>
<span class="c">  */</span>
 <span class="nx">buildModulesList</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>

     <span class="kd">var</span> <span class="nx">modules</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">modules</span><span class="o">;</span>
     <span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">modules</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
		  <span class="k">this</span><span class="p">.</span><span class="nx">addModuleToList</span><span class="p">(</span><span class="nx">modules</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
     <span class="p">}</span>

     <span class="c">// Make the layer a drag drop target</span>
     <span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">ddTarget</span><span class="p">)</span> <span class="p">{</span>
       <span class="k">this</span><span class="p">.</span><span class="nx">ddTarget</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">DDTarget</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">el</span><span class="o">,</span> <span class="s2">&quot;module&quot;</span><span class="p">);</span>
       <span class="k">this</span><span class="p">.</span><span class="nx">ddTarget</span><span class="p">.</span><span class="nx">_layer</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="o">;</span>
     <span class="p">}</span>
     
 <span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * Add a module definition to the left list</span>
<span class="c">  */</span>
 <span class="nx">addModuleToList</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">module</span><span class="p">)</span> <span class="p">{</span>
	
		<span class="kd">var</span> <span class="nx">div</span> <span class="o">=</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">cn</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="o">,</span> <span class="p">{</span><span class="nx">className</span><span class="o">:</span> <span class="s2">&quot;WiringEditor-module&quot;</span><span class="p">});</span>
      <span class="k">if</span><span class="p">(</span><span class="nx">module</span><span class="p">.</span><span class="nx">container</span><span class="p">.</span><span class="nx">icon</span><span class="p">)</span> <span class="p">{</span>
         <span class="nx">div</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">cn</span><span class="p">(</span><span class="s1">&#39;img&#39;</span><span class="o">,</span><span class="p">{</span><span class="nx">src</span><span class="o">:</span> <span class="nx">module</span><span class="p">.</span><span class="nx">container</span><span class="p">.</span><span class="nx">icon</span><span class="p">})</span> <span class="p">);</span>
      <span class="p">}</span>
      <span class="nx">div</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">cn</span><span class="p">(</span><span class="s1">&#39;span&#39;</span><span class="o">,</span> <span class="kc">null</span><span class="o">,</span> <span class="kc">null</span><span class="o">,</span> <span class="nx">module</span><span class="p">.</span><span class="nx">name</span><span class="p">)</span> <span class="p">);</span>

      <span class="kd">var</span> <span class="nx">ddProxy</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">ModuleProxy</span><span class="p">(</span><span class="nx">div</span><span class="o">,</span> <span class="k">this</span><span class="p">);</span>
      <span class="nx">ddProxy</span><span class="p">.</span><span class="nx">_module</span> <span class="o">=</span> <span class="nx">module</span><span class="o">;</span>

      <span class="k">this</span><span class="p">.</span><span class="nx">leftEl</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">div</span><span class="p">);</span>
 <span class="p">}</span><span class="o">,</span>
 
 <span class="c">/**</span>
<span class="c">  * add a module at the given pos</span>
<span class="c">  */</span>
 <span class="nx">addModule</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">module</span><span class="o">,</span> <span class="nx">pos</span><span class="p">)</span> <span class="p">{</span>
    <span class="k">try</span> <span class="p">{</span>
       <span class="kd">var</span> <span class="nx">containerConfig</span> <span class="o">=</span> <span class="nx">module</span><span class="p">.</span><span class="nx">container</span><span class="o">;</span>
       <span class="nx">containerConfig</span><span class="p">.</span><span class="nx">position</span> <span class="o">=</span> <span class="nx">pos</span><span class="o">;</span>
       <span class="nx">containerConfig</span><span class="p">.</span><span class="nx">title</span> <span class="o">=</span> <span class="nx">module</span><span class="p">.</span><span class="nx">name</span><span class="o">;</span>
       <span class="kd">var</span> <span class="nx">container</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">addContainer</span><span class="p">(</span><span class="nx">containerConfig</span><span class="p">);</span>
       <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">container</span><span class="p">.</span><span class="nx">el</span><span class="o">,</span> <span class="s2">&quot;WiringEditor-module-&quot;</span><span class="o">+</span><span class="nx">module</span><span class="p">.</span><span class="nx">name</span><span class="p">);</span>
    <span class="p">}</span>
    <span class="k">catch</span><span class="p">(</span><span class="nx">ex</span><span class="p">)</span> <span class="p">{</span>
       <span class="k">this</span><span class="p">.</span><span class="nx">alert</span><span class="p">(</span><span class="s2">&quot;Error Layer.addContainer: &quot;</span><span class="o">+</span> <span class="nx">ex</span><span class="p">.</span><span class="nx">message</span><span class="p">);</span>
    <span class="p">}</span>    
 <span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * Toolbar</span>
<span class="c">  * @method renderButtons</span>
<span class="c">  */</span>
 <span class="nx">renderButtons</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="kd">var</span> <span class="nx">toolbar</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;toolbar&#39;</span><span class="p">);</span>
    <span class="c">// Buttons :</span>
    <span class="kd">var</span> <span class="nx">newButton</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">widget</span><span class="p">.</span><span class="nx">Button</span><span class="p">({</span> <span class="kd">label</span><span class="o">:</span><span class="s2">&quot;New&quot;</span><span class="o">,</span> <span class="nx">id</span><span class="o">:</span><span class="s2">&quot;WiringEditor-newButton&quot;</span><span class="o">,</span> <span class="nx">container</span><span class="o">:</span> <span class="nx">toolbar</span> <span class="p">});</span>
    <span class="nx">newButton</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s2">&quot;click&quot;</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">onNew</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>

    <span class="kd">var</span> <span class="nx">loadButton</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">widget</span><span class="p">.</span><span class="nx">Button</span><span class="p">({</span> <span class="kd">label</span><span class="o">:</span><span class="s2">&quot;Load&quot;</span><span class="o">,</span> <span class="nx">id</span><span class="o">:</span><span class="s2">&quot;WiringEditor-loadButton&quot;</span><span class="o">,</span> <span class="nx">container</span><span class="o">:</span> <span class="nx">toolbar</span> <span class="p">});</span>
    <span class="nx">loadButton</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s2">&quot;click&quot;</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">load</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>

    <span class="kd">var</span> <span class="nx">saveButton</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">widget</span><span class="p">.</span><span class="nx">Button</span><span class="p">({</span> <span class="kd">label</span><span class="o">:</span><span class="s2">&quot;Save&quot;</span><span class="o">,</span> <span class="nx">id</span><span class="o">:</span><span class="s2">&quot;WiringEditor-saveButton&quot;</span><span class="o">,</span> <span class="nx">container</span><span class="o">:</span> <span class="nx">toolbar</span> <span class="p">});</span>
    <span class="nx">saveButton</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s2">&quot;click&quot;</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">onSave</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>

    <span class="kd">var</span> <span class="nx">deleteButton</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">widget</span><span class="p">.</span><span class="nx">Button</span><span class="p">({</span> <span class="kd">label</span><span class="o">:</span><span class="s2">&quot;Delete&quot;</span><span class="o">,</span> <span class="nx">id</span><span class="o">:</span><span class="s2">&quot;WiringEditor-deleteButton&quot;</span><span class="o">,</span> <span class="nx">container</span><span class="o">:</span> <span class="nx">toolbar</span> <span class="p">});</span>
    <span class="nx">deleteButton</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s2">&quot;click&quot;</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">onDelete</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>

    <span class="kd">var</span> <span class="nx">helpButton</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">widget</span><span class="p">.</span><span class="nx">Button</span><span class="p">({</span> <span class="kd">label</span><span class="o">:</span><span class="s2">&quot;Help&quot;</span><span class="o">,</span> <span class="nx">id</span><span class="o">:</span><span class="s2">&quot;WiringEditor-helpButton&quot;</span><span class="o">,</span> <span class="nx">container</span><span class="o">:</span> <span class="nx">toolbar</span> <span class="p">});</span>
    <span class="nx">helpButton</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s2">&quot;click&quot;</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">onHelp</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
 <span class="p">}</span><span class="o">,</span>

	<span class="c">/**</span>
<span class="c">	 * @method renderSavedStatus</span>
<span class="c">	 */</span>
	<span class="nx">renderSavedStatus</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
		<span class="kd">var</span> <span class="nx">top</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;top&#39;</span><span class="p">);</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">savedStatusEl</span> <span class="o">=</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">cn</span><span class="p">(</span><span class="s1">&#39;div&#39;</span><span class="o">,</span> <span class="p">{</span><span class="nx">className</span><span class="o">:</span> <span class="s1">&#39;savedStatus&#39;</span><span class="o">,</span> <span class="nx">title</span><span class="o">:</span> <span class="s1">&#39;Not saved&#39;</span><span class="p">}</span><span class="o">,</span> <span class="p">{</span><span class="nx">display</span><span class="o">:</span> <span class="s1">&#39;none&#39;</span><span class="p">}</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="p">);</span>
		<span class="nx">top</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">savedStatusEl</span><span class="p">);</span>
	<span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * save the current module</span>
<span class="c">  * @method saveModule</span>
<span class="c">  */</span>
 <span class="nx">saveModule</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    
    <span class="kd">var</span> <span class="nx">value</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getValue</span><span class="p">();</span>
    
    <span class="k">if</span><span class="p">(</span><span class="nx">value</span><span class="p">.</span><span class="nx">name</span> <span class="o">===</span> <span class="s2">&quot;&quot;</span><span class="p">)</span> <span class="p">{</span>
       <span class="k">this</span><span class="p">.</span><span class="nx">alert</span><span class="p">(</span><span class="s2">&quot;Please choose a name&quot;</span><span class="p">);</span>
       <span class="k">return</span><span class="o">;</span>
    <span class="p">}</span>

	<span class="k">this</span><span class="p">.</span><span class="nx">tempSavedWiring</span> <span class="o">=</span> <span class="p">{</span><span class="nx">name</span><span class="o">:</span> <span class="nx">value</span><span class="p">.</span><span class="nx">name</span><span class="o">,</span> <span class="nx">working</span><span class="o">:</span> <span class="nx">JSON</span><span class="p">.</span><span class="nx">stringify</span><span class="p">(</span><span class="nx">value</span><span class="p">.</span><span class="nx">working</span><span class="p">)</span><span class="o">,</span> <span class="nx">language</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">languageName</span> <span class="p">};</span>
                
    <span class="k">this</span><span class="p">.</span><span class="nx">adapter</span><span class="p">.</span><span class="nx">saveWiring</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">tempSavedWiring</span><span class="o">,</span> <span class="p">{</span>
       <span class="nx">success</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">saveModuleSuccess</span><span class="o">,</span>
       <span class="nx">failure</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">saveModuleFailure</span><span class="o">,</span>
       <span class="nx">scope</span><span class="o">:</span> <span class="k">this</span>
    <span class="p">});</span>

 <span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * saveModule success callback</span>
<span class="c">  * @method saveModuleSuccess</span>
<span class="c">  */</span>
 <span class="nx">saveModuleSuccess</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">o</span><span class="p">)</span> <span class="p">{</span>

	<span class="k">this</span><span class="p">.</span><span class="nx">markSaved</span><span class="p">();</span>

   <span class="k">this</span><span class="p">.</span><span class="nx">alert</span><span class="p">(</span><span class="s2">&quot;Saved !&quot;</span><span class="p">);</span>

	<span class="c">// TODO:</span>
	<span class="c">/*var name = this.tempSavedWiring.name;	</span>
<span class="c">	if(this.modulesByName.hasOwnProperty(name) ) {</span>
<span class="c">		//already exists</span>
<span class="c">	}</span>
<span class="c">	else {</span>
<span class="c">		//new one</span>
<span class="c">	}*/</span>
	
 <span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * saveModule failure callback</span>
<span class="c">  * @method saveModuleFailure</span>
<span class="c">  */</span>
 <span class="nx">saveModuleFailure</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">errorStr</span><span class="p">)</span> <span class="p">{</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">alert</span><span class="p">(</span><span class="s2">&quot;Unable to save the wiring : &quot;</span><span class="o">+</span><span class="nx">errorStr</span><span class="p">);</span>
 <span class="p">}</span><span class="o">,</span>

	<span class="nx">alert</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">txt</span><span class="p">)</span> <span class="p">{</span>
		<span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">alertPanel</span><span class="p">){</span> <span class="k">this</span><span class="p">.</span><span class="nx">renderAlertPanel</span><span class="p">();</span> <span class="p">}</span>
		<span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;alertPanelBody&#39;</span><span class="p">).</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="nx">txt</span><span class="o">;</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">alertPanel</span><span class="p">.</span><span class="nx">show</span><span class="p">();</span>
	<span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * Create a help panel</span>
<span class="c">  * @method onHelp</span>
<span class="c">  */</span>
 <span class="nx">onHelp</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">helpPanel</span><span class="p">.</span><span class="nx">show</span><span class="p">();</span>
 <span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * @method onNew</span>
<span class="c">  */</span>
 <span class="nx">onNew</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
	
	<span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">isSaved</span><span class="p">())</span> <span class="p">{</span>
		<span class="k">if</span><span class="p">(</span> <span class="o">!</span><span class="nx">confirm</span><span class="p">(</span><span class="s2">&quot;Warning: Your work is not saved yet ! Press ok to continue anyway.&quot;</span><span class="p">)</span> <span class="p">)</span> <span class="p">{</span>
			<span class="k">return</span><span class="o">;</span>
		<span class="p">}</span>
	<span class="p">}</span>
	
	<span class="k">this</span><span class="p">.</span><span class="nx">preventLayerChangedEvent</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
	
   <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">clear</span><span class="p">();</span> 

   <span class="k">this</span><span class="p">.</span><span class="nx">propertiesForm</span><span class="p">.</span><span class="nx">clear</span><span class="p">(</span><span class="kc">false</span><span class="p">);</span> <span class="c">// false to tell inputEx to NOT send the updatedEvt</span>

	<span class="k">this</span><span class="p">.</span><span class="nx">markSaved</span><span class="p">();</span>

	<span class="k">this</span><span class="p">.</span><span class="nx">preventLayerChangedEvent</span> <span class="o">=</span> <span class="kc">false</span><span class="o">;</span>
 <span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * @method onDelete</span>
<span class="c">  */</span>
 <span class="nx">onDelete</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">if</span><span class="p">(</span> <span class="nx">confirm</span><span class="p">(</span><span class="s2">&quot;Are you sure you want to delete this wiring ?&quot;</span><span class="p">)</span> <span class="p">)</span> <span class="p">{</span>
       
      <span class="kd">var</span> <span class="nx">value</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getValue</span><span class="p">();</span>
 		<span class="k">this</span><span class="p">.</span><span class="nx">adapter</span><span class="p">.</span><span class="nx">deleteWiring</span><span class="p">({</span><span class="nx">name</span><span class="o">:</span> <span class="nx">value</span><span class="p">.</span><span class="nx">name</span><span class="o">,</span> <span class="nx">language</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">languageName</span><span class="p">}</span><span class="o">,</span><span class="p">{</span>
 			<span class="nx">success</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">result</span><span class="p">)</span> <span class="p">{</span>
				<span class="k">this</span><span class="p">.</span><span class="nx">onNew</span><span class="p">();</span>
 				<span class="k">this</span><span class="p">.</span><span class="nx">alert</span><span class="p">(</span><span class="s2">&quot;Deleted !&quot;</span><span class="p">);</span>
 			<span class="p">}</span><span class="o">,</span>
			<span class="nx">failure</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">errorStr</span><span class="p">)</span> <span class="p">{</span>
				<span class="k">this</span><span class="p">.</span><span class="nx">alert</span><span class="p">(</span><span class="s2">&quot;Unable to delete wiring: &quot;</span><span class="o">+</span><span class="nx">errorStr</span><span class="p">);</span>
			<span class="p">}</span><span class="o">,</span>
			<span class="nx">scope</span><span class="o">:</span> <span class="k">this</span>
 		<span class="p">});</span>
       
    <span class="p">}</span>
 <span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * @method onSave</span>
<span class="c">  */</span>
 <span class="nx">onSave</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">saveModule</span><span class="p">();</span>
 <span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * @method renderLoadPanel</span>
<span class="c">  */</span>
 <span class="nx">renderLoadPanel</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    <span class="k">if</span><span class="p">(</span> <span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">loadPanel</span><span class="p">)</span> <span class="p">{</span>
       <span class="k">this</span><span class="p">.</span><span class="nx">loadPanel</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">widget</span><span class="p">.</span><span class="nx">Panel</span><span class="p">(</span><span class="s1">&#39;WiringEditor-loadPanel&#39;</span><span class="o">,</span> <span class="p">{</span>
          <span class="nx">fixedcenter</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
          <span class="nx">draggable</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
          <span class="nx">width</span><span class="o">:</span> <span class="s1">&#39;500px&#39;</span><span class="o">,</span>
          <span class="nx">visible</span><span class="o">:</span> <span class="kc">false</span><span class="o">,</span>
          <span class="nx">modal</span><span class="o">:</span> <span class="kc">true</span>
       <span class="p">});</span>
       <span class="k">this</span><span class="p">.</span><span class="nx">loadPanel</span><span class="p">.</span><span class="nx">setHeader</span><span class="p">(</span><span class="s2">&quot;Select the wiring to load&quot;</span><span class="p">);</span>
       <span class="k">this</span><span class="p">.</span><span class="nx">loadPanel</span><span class="p">.</span><span class="nx">setBody</span><span class="p">(</span><span class="s2">&quot;Filter: &lt;input type=&#39;text&#39; id=&#39;loadFilter&#39; /&gt;&lt;div id=&#39;loadPanelBody&#39;&gt;&lt;/div&gt;&quot;</span><span class="p">);</span>
       <span class="k">this</span><span class="p">.</span><span class="nx">loadPanel</span><span class="p">.</span><span class="nx">render</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">);</span>

		<span class="c">// Listen the keyup event to filter the module list</span>
		<span class="nx">Event</span><span class="p">.</span><span class="nx">onAvailable</span><span class="p">(</span><span class="s1">&#39;loadFilter&#39;</span><span class="o">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
			<span class="nx">Event</span><span class="p">.</span><span class="nx">addListener</span><span class="p">(</span><span class="s1">&#39;loadFilter&#39;</span><span class="o">,</span> <span class="s2">&quot;keyup&quot;</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">inputFilterTimer</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
		<span class="p">}</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>

    <span class="p">}</span>
 <span class="p">}</span><span class="o">,</span>

	<span class="c">/**</span>
<span class="c">	 * Method called from each keyup on the search filter in load panel.</span>
<span class="c">	 * The real filtering occurs only after 500ms so that the filter process isn&#39;t called too often</span>
<span class="c">	 */</span>
	<span class="nx">inputFilterTimer</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
		<span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">inputFilterTimeout</span><span class="p">)</span> <span class="p">{</span>
			<span class="nx">clearTimeout</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">inputFilterTimeout</span><span class="p">);</span>
			<span class="k">this</span><span class="p">.</span><span class="nx">inputFilterTimeout</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
		<span class="p">}</span>
		<span class="kd">var</span> <span class="nx">that</span> <span class="o">=</span> <span class="k">this</span><span class="o">;</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">inputFilterTimeout</span> <span class="o">=</span> <span class="nx">setTimeout</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
				<span class="nx">that</span><span class="p">.</span><span class="nx">updateLoadPanelList</span><span class="p">(</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;loadFilter&#39;</span><span class="p">).</span><span class="nx">value</span><span class="p">);</span>
		<span class="p">}</span><span class="o">,</span> <span class="mi">500</span><span class="p">);</span>
	<span class="p">}</span><span class="o">,</span>


 <span class="c">/**</span>
<span class="c">  * @method updateLoadPanelList</span>
<span class="c">  */</span>
 <span class="nx">updateLoadPanelList</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">filter</span><span class="p">)</span> <span class="p">{</span>
	
    <span class="kd">var</span> <span class="nx">list</span> <span class="o">=</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">cn</span><span class="p">(</span><span class="s2">&quot;ul&quot;</span><span class="p">);</span>
    <span class="k">if</span><span class="p">(</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">pipes</span><span class="p">))</span> <span class="p">{</span>
       <span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">pipes</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
          <span class="kd">var</span> <span class="nx">module</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">pipes</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
          <span class="k">this</span><span class="p">.</span><span class="nx">pipesByName</span><span class="p">[</span><span class="nx">module</span><span class="p">.</span><span class="nx">name</span><span class="p">]</span> <span class="o">=</span> <span class="nx">module</span><span class="o">;</span>
          <span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">filter</span> <span class="o">||</span> <span class="nx">filter</span> <span class="o">===</span> <span class="s2">&quot;&quot;</span> <span class="o">||</span> <span class="nx">module</span><span class="p">.</span><span class="nx">name</span><span class="p">.</span><span class="nx">match</span><span class="p">(</span><span class="k">new</span> <span class="nb">RegExp</span><span class="p">(</span><span class="nx">filter</span><span class="o">,</span><span class="s2">&quot;i&quot;</span><span class="p">))</span> <span class="p">)</span> <span class="p">{</span>
	          <span class="nx">list</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">cn</span><span class="p">(</span><span class="s1">&#39;li&#39;</span><span class="o">,</span><span class="kc">null</span><span class="o">,</span><span class="p">{</span><span class="nx">cursor</span><span class="o">:</span> <span class="s1">&#39;pointer&#39;</span><span class="p">}</span><span class="o">,</span><span class="nx">module</span><span class="p">.</span><span class="nx">name</span><span class="p">)</span> <span class="p">);</span>
			<span class="p">}</span>
       <span class="p">}</span>
    <span class="p">}</span>
    <span class="kd">var</span> <span class="nx">panelBody</span> <span class="o">=</span> <span class="nx">Dom</span><span class="p">.</span><span class="nx">get</span><span class="p">(</span><span class="s1">&#39;loadPanelBody&#39;</span><span class="p">);</span>
    <span class="nx">panelBody</span><span class="p">.</span><span class="nx">innerHTML</span> <span class="o">=</span> <span class="s2">&quot;&quot;</span><span class="o">;</span>
    <span class="nx">panelBody</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="nx">list</span><span class="p">);</span>

    <span class="nx">Event</span><span class="p">.</span><span class="nx">addListener</span><span class="p">(</span><span class="nx">list</span><span class="o">,</span> <span class="s1">&#39;click&#39;</span><span class="o">,</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="o">,</span><span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
    	<span class="k">this</span><span class="p">.</span><span class="nx">loadPipe</span><span class="p">(</span><span class="nx">Event</span><span class="p">.</span><span class="nx">getTarget</span><span class="p">(</span><span class="nx">e</span><span class="p">).</span><span class="nx">innerHTML</span><span class="p">);</span>
    <span class="p">}</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>

 <span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * @method load</span>
<span class="c">  */</span>
 <span class="nx">load</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    
    <span class="k">this</span><span class="p">.</span><span class="nx">adapter</span><span class="p">.</span><span class="nx">listWirings</span><span class="p">({</span><span class="nx">language</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">languageName</span><span class="p">}</span><span class="o">,</span><span class="p">{</span>
			<span class="nx">success</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">result</span><span class="p">)</span> <span class="p">{</span>
				<span class="k">this</span><span class="p">.</span><span class="nx">onLoadSuccess</span><span class="p">(</span><span class="nx">result</span><span class="p">);</span>
			<span class="p">}</span><span class="o">,</span>
			<span class="nx">failure</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">errorStr</span><span class="p">)</span> <span class="p">{</span>
				<span class="k">this</span><span class="p">.</span><span class="nx">alert</span><span class="p">(</span><span class="s2">&quot;Unable to load the wirings: &quot;</span><span class="o">+</span><span class="nx">errorStr</span><span class="p">);</span>
			<span class="p">}</span><span class="o">,</span>
			<span class="nx">scope</span><span class="o">:</span> <span class="k">this</span>
		<span class="p">}</span>
		<span class="p">);</span>

 <span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * @method onLoadSuccess</span>
<span class="c">  */</span>
 <span class="nx">onLoadSuccess</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">wirings</span><span class="p">)</span> <span class="p">{</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">pipes</span> <span class="o">=</span> <span class="nx">wirings</span><span class="o">;</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">pipesByName</span> <span class="o">=</span> <span class="p">{};</span>
		
		<span class="k">this</span><span class="p">.</span><span class="nx">renderLoadPanel</span><span class="p">();</span>
    	<span class="k">this</span><span class="p">.</span><span class="nx">updateLoadPanelList</span><span class="p">();</span>

		<span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">afterFirstRun</span><span class="p">)</span> <span class="p">{</span>
			<span class="kd">var</span> <span class="nx">p</span> <span class="o">=</span> <span class="nb">window</span><span class="p">.</span><span class="nx">location</span><span class="p">.</span><span class="nx">search</span><span class="p">.</span><span class="nx">substr</span><span class="p">(</span><span class="mi">1</span><span class="p">).</span><span class="nx">split</span><span class="p">(</span><span class="s1">&#39;&amp;&#39;</span><span class="p">);</span>
			<span class="kd">var</span> <span class="nx">oP</span> <span class="o">=</span> <span class="p">{};</span>
			<span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">p</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
				<span class="kd">var</span> <span class="nx">v</span> <span class="o">=</span> <span class="nx">p</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">split</span><span class="p">(</span><span class="s1">&#39;=&#39;</span><span class="p">);</span>
				<span class="nx">oP</span><span class="p">[</span><span class="nx">v</span><span class="p">[</span><span class="mi">0</span><span class="p">]]</span><span class="o">=</span><span class="nb">window</span><span class="p">.</span><span class="nb">decodeURIComponent</span><span class="p">(</span><span class="nx">v</span><span class="p">[</span><span class="mi">1</span><span class="p">]);</span>
			<span class="p">}</span>
			<span class="k">this</span><span class="p">.</span><span class="nx">afterFirstRun</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
			<span class="k">if</span><span class="p">(</span><span class="nx">oP</span><span class="p">.</span><span class="nx">autoload</span><span class="p">)</span> <span class="p">{</span>
				<span class="k">this</span><span class="p">.</span><span class="nx">loadPipe</span><span class="p">(</span><span class="nx">oP</span><span class="p">.</span><span class="nx">autoload</span><span class="p">);</span>
				<span class="k">return</span><span class="o">;</span>
			<span class="p">}</span>
		<span class="p">}</span>

    <span class="k">this</span><span class="p">.</span><span class="nx">loadPanel</span><span class="p">.</span><span class="nx">show</span><span class="p">();</span>
	<span class="p">}</span><span class="o">,</span>

 <span class="c">/**</span>
<span class="c">  * @method getPipeByName</span>
<span class="c">  * @param {String} name Pipe&#39;s name</span>
<span class="c">  * @return {Object} return the evaled json pipe configuration</span>
<span class="c">  */</span>
 <span class="nx">getPipeByName</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">name</span><span class="p">)</span> <span class="p">{</span>
    <span class="kd">var</span> <span class="nx">n</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">pipes</span><span class="p">.</span><span class="nx">length</span><span class="o">,</span><span class="nx">ret</span><span class="o">;</span>
    <span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">n</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
       <span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">pipes</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">name</span> <span class="o">==</span> <span class="nx">name</span><span class="p">)</span> <span class="p">{</span>
          <span class="c">// Try to eval working property:</span>
          <span class="k">try</span> <span class="p">{</span>
             <span class="nx">ret</span> <span class="o">=</span> <span class="nx">JSON</span><span class="p">.</span><span class="nx">parse</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">pipes</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">working</span><span class="p">);</span>
             <span class="k">return</span> <span class="nx">ret</span><span class="o">;</span>
          <span class="p">}</span>
          <span class="k">catch</span><span class="p">(</span><span class="nx">ex</span><span class="p">)</span> <span class="p">{</span>
             <span class="k">this</span><span class="p">.</span><span class="nx">alert</span><span class="p">(</span><span class="s2">&quot;Unable to eval working json for module &quot;</span><span class="o">+</span><span class="nx">name</span><span class="p">);</span>
             <span class="k">return</span> <span class="kc">null</span><span class="o">;</span>
          <span class="p">}</span>
       <span class="p">}</span>
    <span class="p">}</span>
    
    <span class="k">return</span> <span class="kc">null</span><span class="o">;</span>
 <span class="p">}</span><span class="o">,</span>
 
 <span class="c">/**</span>
<span class="c">  * @method loadPipe</span>
<span class="c">  * @param {String} name Pipe name</span>
<span class="c">  */</span>
 <span class="nx">loadPipe</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">name</span><span class="p">)</span> <span class="p">{</span>
	
	<span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">isSaved</span><span class="p">())</span> <span class="p">{</span>
		<span class="k">if</span><span class="p">(</span> <span class="o">!</span><span class="nx">confirm</span><span class="p">(</span><span class="s2">&quot;Warning: Your work is not saved yet ! Press ok to continue anyway.&quot;</span><span class="p">)</span> <span class="p">)</span> <span class="p">{</span>
			<span class="k">return</span><span class="o">;</span>
		<span class="p">}</span>
	<span class="p">}</span>
	
	<span class="k">try</span> <span class="p">{</span>
	
		<span class="k">this</span><span class="p">.</span><span class="nx">preventLayerChangedEvent</span> <span class="o">=</span> <span class="kc">true</span><span class="o">;</span>
	
     <span class="k">this</span><span class="p">.</span><span class="nx">loadPanel</span><span class="p">.</span><span class="nx">hide</span><span class="p">();</span>
	
    <span class="kd">var</span> <span class="nx">wiring</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">getPipeByName</span><span class="p">(</span><span class="nx">name</span><span class="p">)</span><span class="o">,</span> <span class="nx">i</span><span class="o">;</span>

	 <span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">wiring</span><span class="p">)</span> <span class="p">{</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">alert</span><span class="p">(</span><span class="s2">&quot;The wiring &#39;&quot;</span><span class="o">+</span><span class="nx">name</span><span class="o">+</span><span class="s2">&quot;&#39; was not found.&quot;</span><span class="p">);</span>
		<span class="k">return</span><span class="o">;</span>
  	 <span class="p">}</span>
    
    <span class="c">// TODO: check if current wiring is saved...</span>
    <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">clear</span><span class="p">();</span>
    
    <span class="k">this</span><span class="p">.</span><span class="nx">propertiesForm</span><span class="p">.</span><span class="nx">setValue</span><span class="p">(</span><span class="nx">wiring</span><span class="p">.</span><span class="nx">properties</span><span class="o">,</span> <span class="kc">false</span><span class="p">);</span> <span class="c">// the false tells inputEx to NOT fire the updatedEvt</span>
    
    <span class="k">if</span><span class="p">(</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="nx">wiring</span><span class="p">.</span><span class="nx">modules</span><span class="p">))</span> <span class="p">{</span>
      
       <span class="c">// Containers</span>
       <span class="k">for</span><span class="p">(</span><span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">wiring</span><span class="p">.</span><span class="nx">modules</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
          <span class="kd">var</span> <span class="nx">m</span> <span class="o">=</span> <span class="nx">wiring</span><span class="p">.</span><span class="nx">modules</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
          <span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">modulesByName</span><span class="p">[</span><span class="nx">m</span><span class="p">.</span><span class="nx">name</span><span class="p">])</span> <span class="p">{</span>
             <span class="kd">var</span> <span class="nx">baseContainerConfig</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">modulesByName</span><span class="p">[</span><span class="nx">m</span><span class="p">.</span><span class="nx">name</span><span class="p">].</span><span class="nx">container</span><span class="o">;</span>
             <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">augmentObject</span><span class="p">(</span><span class="nx">m</span><span class="p">.</span><span class="nx">config</span><span class="o">,</span> <span class="nx">baseContainerConfig</span><span class="p">);</span> 
             <span class="nx">m</span><span class="p">.</span><span class="nx">config</span><span class="p">.</span><span class="nx">title</span> <span class="o">=</span> <span class="nx">m</span><span class="p">.</span><span class="nx">name</span><span class="o">;</span>
             <span class="kd">var</span> <span class="nx">container</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">addContainer</span><span class="p">(</span><span class="nx">m</span><span class="p">.</span><span class="nx">config</span><span class="p">);</span>
             <span class="nx">Dom</span><span class="p">.</span><span class="nx">addClass</span><span class="p">(</span><span class="nx">container</span><span class="p">.</span><span class="nx">el</span><span class="o">,</span> <span class="s2">&quot;WiringEditor-module-&quot;</span><span class="o">+</span><span class="nx">m</span><span class="p">.</span><span class="nx">name</span><span class="p">);</span>
             <span class="nx">container</span><span class="p">.</span><span class="nx">setValue</span><span class="p">(</span><span class="nx">m</span><span class="p">.</span><span class="nx">value</span><span class="p">);</span>
          <span class="p">}</span>
          <span class="k">else</span> <span class="p">{</span>
             <span class="k">throw</span> <span class="k">new</span> <span class="nb">Error</span><span class="p">(</span><span class="s2">&quot;WiringEditor: module &#39;&quot;</span><span class="o">+</span><span class="nx">m</span><span class="p">.</span><span class="nx">name</span><span class="o">+</span><span class="s2">&quot;&#39; not found !&quot;</span><span class="p">);</span>
          <span class="p">}</span>
       <span class="p">}</span>
       
       <span class="c">// Wires</span>
       <span class="k">if</span><span class="p">(</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="nx">wiring</span><span class="p">.</span><span class="nx">wires</span><span class="p">))</span> <span class="p">{</span>
           <span class="k">for</span><span class="p">(</span><span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="nx">wiring</span><span class="p">.</span><span class="nx">wires</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
              <span class="c">// On doit chercher dans la liste des terminaux de chacun des modules l&#39;index des terminaux...</span>
              <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">addWire</span><span class="p">(</span><span class="nx">wiring</span><span class="p">.</span><span class="nx">wires</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
           <span class="p">}</span>
        <span class="p">}</span>
     <span class="p">}</span>
     
	<span class="k">this</span><span class="p">.</span><span class="nx">markSaved</span><span class="p">();</span>
	
	<span class="k">this</span><span class="p">.</span><span class="nx">preventLayerChangedEvent</span> <span class="o">=</span> <span class="kc">false</span><span class="o">;</span>
	
  	<span class="p">}</span>
  	<span class="k">catch</span><span class="p">(</span><span class="nx">ex</span><span class="p">)</span> <span class="p">{</span>
     	<span class="k">this</span><span class="p">.</span><span class="nx">alert</span><span class="p">(</span><span class="nx">ex</span><span class="p">);</span>
  	<span class="p">}</span>
 <span class="p">}</span><span class="o">,</span>

 	<span class="nx">renderAlertPanel</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
		
 	 <span class="c">/**</span>
<span class="c">     * @property alertPanel</span>
<span class="c">     * @type {YAHOO.widget.Panel}</span>
<span class="c">     */</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">alertPanel</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">widget</span><span class="p">.</span><span class="nx">Panel</span><span class="p">(</span><span class="s1">&#39;WiringEditor-alertPanel&#39;</span><span class="o">,</span> <span class="p">{</span>
         <span class="nx">fixedcenter</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
         <span class="nx">draggable</span><span class="o">:</span> <span class="kc">true</span><span class="o">,</span>
         <span class="nx">width</span><span class="o">:</span> <span class="s1">&#39;500px&#39;</span><span class="o">,</span>
         <span class="nx">visible</span><span class="o">:</span> <span class="kc">false</span><span class="o">,</span>
         <span class="nx">modal</span><span class="o">:</span> <span class="kc">true</span>
      <span class="p">});</span>
      <span class="k">this</span><span class="p">.</span><span class="nx">alertPanel</span><span class="p">.</span><span class="nx">setHeader</span><span class="p">(</span><span class="s2">&quot;Message&quot;</span><span class="p">);</span>
      <span class="k">this</span><span class="p">.</span><span class="nx">alertPanel</span><span class="p">.</span><span class="nx">setBody</span><span class="p">(</span><span class="s2">&quot;&lt;div id=&#39;alertPanelBody&#39;&gt;&lt;/div&gt;&lt;button id=&#39;alertPanelButton&#39;&gt;Ok&lt;/button&gt;&quot;</span><span class="p">);</span>
      <span class="k">this</span><span class="p">.</span><span class="nx">alertPanel</span><span class="p">.</span><span class="nx">render</span><span class="p">(</span><span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="p">);</span>
		<span class="nx">Event</span><span class="p">.</span><span class="nx">addListener</span><span class="p">(</span><span class="s1">&#39;alertPanelButton&#39;</span><span class="o">,</span><span class="s1">&#39;click&#39;</span><span class="o">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
			<span class="k">this</span><span class="p">.</span><span class="nx">alertPanel</span><span class="p">.</span><span class="nx">hide</span><span class="p">();</span>
		<span class="p">}</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
	<span class="p">}</span><span class="o">,</span>

	<span class="nx">onLayerChanged</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
		<span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="k">this</span><span class="p">.</span><span class="nx">preventLayerChangedEvent</span><span class="p">)</span> <span class="p">{</span>
			<span class="k">this</span><span class="p">.</span><span class="nx">markUnsaved</span><span class="p">();</span>
		<span class="p">}</span>
	<span class="p">}</span><span class="o">,</span>

	<span class="nx">markSaved</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">savedStatusEl</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s1">&#39;none&#39;</span><span class="o">;</span>
	<span class="p">}</span><span class="o">,</span>
	
	<span class="nx">markUnsaved</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
		<span class="k">this</span><span class="p">.</span><span class="nx">savedStatusEl</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">=</span> <span class="s1">&#39;&#39;</span><span class="o">;</span>
	<span class="p">}</span><span class="o">,</span>

	<span class="nx">isSaved</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
		<span class="k">return</span> <span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">savedStatusEl</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">display</span> <span class="o">==</span> <span class="s1">&#39;none&#39;</span><span class="p">);</span>
	<span class="p">}</span><span class="o">,</span>
 
 <span class="c">/**</span>
<span class="c">  * This method return a wiring within the given vocabulary described by the modules list</span>
<span class="c">  * @method getValue</span>
<span class="c">  */</span>
 <span class="nx">getValue</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
    
   <span class="kd">var</span> <span class="nx">i</span><span class="o">;</span>
   <span class="kd">var</span> <span class="nx">obj</span> <span class="o">=</span> <span class="p">{</span><span class="nx">modules</span><span class="o">:</span> <span class="p">[]</span><span class="o">,</span> <span class="nx">wires</span><span class="o">:</span> <span class="p">[]</span><span class="o">,</span> <span class="nx">properties</span><span class="o">:</span> <span class="kc">null</span><span class="p">};</span>

   <span class="k">for</span><span class="p">(</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">containers</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
      <span class="nx">obj</span><span class="p">.</span><span class="nx">modules</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span> <span class="p">{</span><span class="nx">name</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">options</span><span class="p">.</span><span class="nx">title</span><span class="o">,</span> <span class="nx">value</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">getValue</span><span class="p">()</span><span class="o">,</span> <span class="nx">config</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">getConfig</span><span class="p">()});</span>
   <span class="p">}</span>

   <span class="k">for</span><span class="p">(</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o">&lt;</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">wires</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
      <span class="kd">var</span> <span class="nx">wire</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">wires</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>

      <span class="kd">var</span> <span class="nx">wireObj</span> <span class="o">=</span> <span class="p">{</span> 
         <span class="nx">src</span><span class="o">:</span> <span class="p">{</span><span class="nx">moduleId</span><span class="o">:</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="nx">wire</span><span class="p">.</span><span class="nx">terminal1</span><span class="p">.</span><span class="nx">container</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">containers</span><span class="p">)</span><span class="o">,</span> <span class="nx">terminal</span><span class="o">:</span> <span class="nx">wire</span><span class="p">.</span><span class="nx">terminal1</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">name</span><span class="p">}</span><span class="o">,</span> 
         <span class="nx">tgt</span><span class="o">:</span> <span class="p">{</span><span class="nx">moduleId</span><span class="o">:</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="nx">wire</span><span class="p">.</span><span class="nx">terminal2</span><span class="p">.</span><span class="nx">container</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">containers</span><span class="p">)</span><span class="o">,</span> <span class="nx">terminal</span><span class="o">:</span> <span class="nx">wire</span><span class="p">.</span><span class="nx">terminal2</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">name</span><span class="p">}</span>
      <span class="p">};</span>
      <span class="nx">obj</span><span class="p">.</span><span class="nx">wires</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">wireObj</span><span class="p">);</span>
   <span class="p">}</span>
   
   <span class="nx">obj</span><span class="p">.</span><span class="nx">properties</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">propertiesForm</span><span class="p">.</span><span class="nx">getValue</span><span class="p">();</span>
    
   <span class="k">return</span> <span class="p">{</span>
      <span class="nx">name</span><span class="o">:</span> <span class="nx">obj</span><span class="p">.</span><span class="nx">properties</span><span class="p">.</span><span class="nx">name</span><span class="o">,</span>
      <span class="nx">working</span><span class="o">:</span> <span class="nx">obj</span>
   <span class="p">};</span>
 <span class="p">}</span>


<span class="p">};</span>


<span class="c">/**</span>
<span class="c"> * WiringEditor Adapters</span>
<span class="c"> * @static</span>
<span class="c"> */</span>
<span class="nx">WireIt</span><span class="p">.</span><span class="nx">WiringEditor</span><span class="p">.</span><span class="nx">adapters</span> <span class="o">=</span> <span class="p">{};</span>


<span class="p">})();</span>
   
</pre></div>
                    </div>
			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li class="selected"><a href="module_WireIt.html" title="WireIt">WireIt</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li class=""><a href="inputEx.BaseField.html" title="inputEx.BaseField">inputEx.BaseField</a></li>
                                <li class=""><a href="inputEx.Field.html" title="inputEx.Field">inputEx.Field</a></li>
                                <li class=""><a href="WireIt.CanvasElement.html" title="WireIt.CanvasElement">WireIt.CanvasElement</a></li>
                                <li class=""><a href="WireIt.Container.html" title="WireIt.Container">WireIt.Container</a></li>
                                <li class=""><a href="WireIt.FormContainer.html" title="WireIt.FormContainer">WireIt.FormContainer</a></li>
                                <li class=""><a href="WireIt.ImageContainer.html" title="WireIt.ImageContainer">WireIt.ImageContainer</a></li>
                                <li class=""><a href="WireIt.InOutContainer.html" title="WireIt.InOutContainer">WireIt.InOutContainer</a></li>
                                <li class=""><a href="WireIt.Layer.html" title="WireIt.Layer">WireIt.Layer</a></li>
                                <li class=""><a href="WireIt.LayerMap.html" title="WireIt.LayerMap">WireIt.LayerMap</a></li>
                                <li class=""><a href="WireIt.ModuleProxy.html" title="WireIt.ModuleProxy">WireIt.ModuleProxy</a></li>
                                <li class=""><a href="WireIt.Scissors.html" title="WireIt.Scissors">WireIt.Scissors</a></li>
                                <li class=""><a href="WireIt.Terminal.html" title="WireIt.Terminal">WireIt.Terminal</a></li>
                                <li class=""><a href="WireIt.TerminalProxy.html" title="WireIt.TerminalProxy">WireIt.TerminalProxy</a></li>
                                <li class=""><a href="WireIt.util.Anim.html" title="WireIt.util.Anim">WireIt.util.Anim</a></li>
                                <li class=""><a href="WireIt.util.DD.html" title="WireIt.util.DD">WireIt.util.DD</a></li>
                                <li class=""><a href="WireIt.util.DDResize.html" title="WireIt.util.DDResize">WireIt.util.DDResize</a></li>
                                <li class=""><a href="WireIt.util.TerminalInput.html" title="WireIt.util.TerminalInput">WireIt.util.TerminalInput</a></li>
                                <li class=""><a href="WireIt.util.TerminalOutput.html" title="WireIt.util.TerminalOutput">WireIt.util.TerminalOutput</a></li>
                                <li class=""><a href="WireIt.Wire.html" title="WireIt.Wire">WireIt.Wire</a></li>
                                <li class=""><a href="WireIt.WireIt.html" title="WireIt.WireIt">WireIt.WireIt</a></li>
                                <li class=""><a href="WireIt.WiringEditor.html" title="WireIt.WiringEditor">WireIt.WiringEditor</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>Files</h4>
                        <ul class="content">        
                                <li class=""><a href="ajax.js.html" title="ajax.js">ajax.js</a></li>
                                <li class=""><a href="Anim.js.html" title="Anim.js">Anim.js</a></li>
                                <li class=""><a href="CanvasElement.js.html" title="CanvasElement.js">CanvasElement.js</a></li>
                                <li class=""><a href="Container.js.html" title="Container.js">Container.js</a></li>
                                <li class=""><a href="DD.js.html" title="DD.js">DD.js</a></li>
                                <li class=""><a href="DDResize.js.html" title="DDResize.js">DDResize.js</a></li>
                                <li class=""><a href="FormContainer-beta.js.html" title="FormContainer-beta.js">FormContainer-beta.js</a></li>
                                <li class=""><a href="gears.js.html" title="gears.js">gears.js</a></li>
                                <li class=""><a href="ImageContainer.js.html" title="ImageContainer.js">ImageContainer.js</a></li>
                                <li class=""><a href="InOutContainer.js.html" title="InOutContainer.js">InOutContainer.js</a></li>
                                <li class=""><a href="json-rpc.js.html" title="json-rpc.js">json-rpc.js</a></li>
                                <li class=""><a href="Layer.js.html" title="Layer.js">Layer.js</a></li>
                                <li class=""><a href="LayerMap.js.html" title="LayerMap.js">LayerMap.js</a></li>
                                <li class=""><a href="Layout.js.html" title="Layout.js">Layout.js</a></li>
                                <li class=""><a href="Terminal.js.html" title="Terminal.js">Terminal.js</a></li>
                                <li class=""><a href="WirableField-beta.js.html" title="WirableField-beta.js">WirableField-beta.js</a></li>
                                <li class=""><a href="Wire.js.html" title="Wire.js">Wire.js</a></li>
                                <li class=""><a href="WireIt.js.html" title="WireIt.js">WireIt.js</a></li>
                                <li class="selected"><a href="WiringEditor.js.html" title="WiringEditor.js">WiringEditor.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Eric Abouaf. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"url": "WireIt.WiringEditor.html#property_adapters", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "adapters"}, {"url": "WireIt.Layer.html#method_addContainer", "access": "", "host": "WireIt.Layer", "type": "method", "name": "addContainer"}, {"url": "WireIt.WiringEditor.html#method_addModule", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "addModule"}, {"url": "WireIt.WiringEditor.html#method_addModuleToList", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "addModuleToList"}, {"url": "WireIt.Container.html#method_addTerminal", "access": "", "host": "WireIt.Container", "type": "method", "name": "addTerminal"}, {"url": "WireIt.Layer.html#method_addWire", "access": "", "host": "WireIt.Layer", "type": "method", "name": "addWire"}, {"url": "WireIt.Terminal.html#method_addWire", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "addWire"}, {"url": "WireIt.WiringEditor.html#property_Ajax", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "Ajax"}, {"url": "WireIt.WiringEditor.html#property_alertPanel", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "alertPanel"}, {"url": "WireIt.Container.html#property_bodyEl", "access": "", "host": "WireIt.Container", "type": "property", "name": "bodyEl"}, {"url": "WireIt.WiringEditor.html#method_buildModulesList", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "buildModulesList"}, {"url": "WireIt.Layer.html#method_clear", "access": "", "host": "WireIt.Layer", "type": "method", "name": "clear"}, {"url": "WireIt.Layer.html#method_clearExplode", "access": "", "host": "WireIt.Layer", "type": "method", "name": "clearExplode"}, {"url": "WireIt.WireIt.html#method_cn", "access": "", "host": "WireIt.WireIt", "type": "method", "name": "cn"}, {"url": "WireIt.WireIt.html#method_compact", "access": "", "host": "WireIt.WireIt", "type": "method", "name": "compact"}, {"url": "WireIt.WiringEditor.html#property_config", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "config"}, {"url": "WireIt.Terminal.html#property_container", "access": "", "host": "WireIt.Terminal", "type": "property", "name": "container"}, {"url": "WireIt.Layer.html#property_containers", "access": "", "host": "WireIt.Layer", "type": "property", "name": "containers"}, {"url": "WireIt.TerminalProxy.html#method_createFrame", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "createFrame"}, {"url": "WireIt.CanvasElement.html#method_destroy", "access": "", "host": "WireIt.CanvasElement", "type": "method", "name": "destroy"}, {"url": "WireIt.LayerMap.html#method_draw", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "draw"}, {"url": "WireIt.Wire.html#method_drawArrows", "access": "", "host": "WireIt.Wire", "type": "method", "name": "drawArrows"}, {"url": "WireIt.Wire.html#method_drawBezierArrows", "access": "", "host": "WireIt.Wire", "type": "method", "name": "drawBezierArrows"}, {"url": "WireIt.Wire.html#method_drawBezierCurve", "access": "", "host": "WireIt.Wire", "type": "method", "name": "drawBezierCurve"}, {"url": "WireIt.LayerMap.html#method_drawContainers", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "drawContainers"}, {"url": "WireIt.Wire.html#method_drawStraight", "access": "", "host": "WireIt.Wire", "type": "method", "name": "drawStraight"}, {"url": "WireIt.LayerMap.html#method_drawWires", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "drawWires"}, {"url": "WireIt.Container.html#property_el", "access": "", "host": "WireIt.Container", "type": "property", "name": "el"}, {"url": "WireIt.Layer.html#property_el", "access": "", "host": "WireIt.Layer", "type": "property", "name": "el"}, {"url": "WireIt.Terminal.html#property_el", "access": "", "host": "WireIt.Terminal", "type": "property", "name": "el"}, {"url": "WireIt.WiringEditor.html#property_el", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "el"}, {"url": "WireIt.CanvasElement.html#property_element", "access": "", "host": "WireIt.CanvasElement", "type": "property", "name": "element"}, {"url": "WireIt.TerminalProxy.html#method_endDrag", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "endDrag"}, {"url": "WireIt.ModuleProxy.html#method_endDrag", "access": "", "host": "WireIt.ModuleProxy", "type": "method", "name": "endDrag"}, {"url": "WireIt.Layer.html#event_eventAddContainer", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventAddContainer"}, {"url": "WireIt.Container.html#event_eventAddWire", "access": "", "host": "WireIt.Container", "type": "event", "name": "eventAddWire"}, {"url": "WireIt.Layer.html#event_eventAddWire", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventAddWire"}, {"url": "WireIt.Terminal.html#event_eventAddWire", "access": "", "host": "WireIt.Terminal", "type": "event", "name": "eventAddWire"}, {"url": "WireIt.Layer.html#event_eventChanged", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventChanged"}, {"url": "WireIt.Layer.html#event_eventContainerDragged", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventContainerDragged"}, {"url": "WireIt.Layer.html#event_eventContainerResized", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventContainerResized"}, {"url": "WireIt.Wire.html#event_eventMouseClick", "access": "", "host": "WireIt.Wire", "type": "event", "name": "eventMouseClick"}, {"url": "WireIt.Wire.html#event_eventMouseIn", "access": "", "host": "WireIt.Wire", "type": "event", "name": "eventMouseIn"}, {"url": "WireIt.Wire.html#event_eventMouseMove", "access": "", "host": "WireIt.Wire", "type": "event", "name": "eventMouseMove"}, {"url": "WireIt.Wire.html#event_eventMouseOut", "access": "", "host": "WireIt.Wire", "type": "event", "name": "eventMouseOut"}, {"url": "WireIt.Layer.html#event_eventRemoveContainer", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventRemoveContainer"}, {"url": "WireIt.Container.html#event_eventRemoveWire", "access": "", "host": "WireIt.Container", "type": "event", "name": "eventRemoveWire"}, {"url": "WireIt.Layer.html#event_eventRemoveWire", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventRemoveWire"}, {"url": "WireIt.Terminal.html#event_eventRemoveWire", "access": "", "host": "WireIt.Terminal", "type": "event", "name": "eventRemoveWire"}, {"url": "WireIt.util.DDResize.html#event_eventResize", "access": "", "host": "WireIt.util.DDResize", "type": "event", "name": "eventResize"}, {"url": "WireIt.TerminalProxy.html#property_fakeTerminal", "access": "", "host": "WireIt.TerminalProxy", "type": "property", "name": "fakeTerminal"}, {"url": "WireIt.WiringEditor.html#property_Gears", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "Gears"}, {"url": "WireIt.Container.html#method_getConfig", "access": "", "host": "WireIt.Container", "type": "method", "name": "getConfig"}, {"url": "WireIt.Terminal.html#method_getConnectedTerminals", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "getConnectedTerminals"}, {"url": "WireIt.CanvasElement.html#method_getContext", "access": "", "host": "WireIt.CanvasElement", "type": "method", "name": "getContext"}, {"url": "WireIt.WireIt.html#method_getIntStyle", "access": "", "host": "WireIt.WireIt", "type": "method", "name": "getIntStyle"}, {"url": "WireIt.Layer.html#method__getMouseEvtPos", "access": "", "host": "WireIt.Layer", "type": "method", "name": "_getMouseEvtPos"}, {"url": "WireIt.Wire.html#method_getOtherTerminal", "access": "", "host": "WireIt.Wire", "type": "method", "name": "getOtherTerminal"}, {"url": "WireIt.WiringEditor.html#method_getPipeByName", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "getPipeByName"}, {"url": "WireIt.Container.html#method_getTerminal", "access": "", "host": "WireIt.Container", "type": "method", "name": "getTerminal"}, {"url": "WireIt.Container.html#method_getValue", "access": "", "host": "WireIt.Container", "type": "method", "name": "getValue"}, {"url": "WireIt.WiringEditor.html#method_getValue", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "getValue"}, {"url": "WireIt.FormContainer.html#method_getValue", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "getValue"}, {"url": "WireIt.Layer.html#method_getWiring", "access": "", "host": "WireIt.Layer", "type": "method", "name": "getWiring"}, {"url": "WireIt.Terminal.html#method_getXY", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "getXY"}, {"url": "WireIt.WiringEditor.html#property_helpPanel", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "helpPanel"}, {"url": "WireIt.Scissors.html#method_hide", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "hide"}, {"url": "WireIt.Scissors.html#method_hideNow", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "hideNow"}, {"url": "WireIt.WireIt.html#method_indexOf", "access": "", "host": "WireIt.WireIt", "type": "method", "name": "indexOf"}, {"url": "WireIt.Layer.html#method_initContainers", "access": "", "host": "WireIt.Layer", "type": "method", "name": "initContainers"}, {"url": "WireIt.LayerMap.html#method_initEvents", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "initEvents"}, {"url": "WireIt.Scissors.html#method_initScissors", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "initScissors"}, {"url": "WireIt.Container.html#method_initTerminals", "access": "", "host": "WireIt.Container", "type": "method", "name": "initTerminals"}, {"url": "WireIt.Layer.html#method_initWires", "access": "", "host": "WireIt.Layer", "type": "method", "name": "initWires"}, {"url": "WireIt.WiringEditor.html#method_inputFilterTimer", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "inputFilterTimer"}, {"url": "WireIt.TerminalProxy.html#method_isValidWireTerminal", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "isValidWireTerminal"}, {"url": "WireIt.WiringEditor.html#property_JsonRpc", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "JsonRpc"}, {"url": "WireIt.Container.html#property_layer", "access": "", "host": "WireIt.Container", "type": "property", "name": "layer"}, {"url": "WireIt.LayerMap.html#property_layer", "access": "", "host": "WireIt.LayerMap", "type": "property", "name": "layer"}, {"url": "WireIt.WiringEditor.html#property_layer", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "layer"}, {"url": "WireIt.WiringEditor.html#property_layout", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "layout"}, {"url": "WireIt.LayerMap.html#method_layoutAnim", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "layoutAnim"}, {"url": "WireIt.WiringEditor.html#property_leftEl", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "leftEl"}, {"url": "WireIt.WiringEditor.html#method_load", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "load"}, {"url": "WireIt.WiringEditor.html#method_loadPipe", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "loadPipe"}, {"url": "WireIt.WiringEditor.html#property_modulesByName", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "modulesByName"}, {"url": "WireIt.Scissors.html#method_mouseOver", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "mouseOver"}, {"url": "WireIt.util.Anim.html#method_moveWireItWires", "access": "", "host": "WireIt.util.Anim", "type": "method", "name": "moveWireItWires"}, {"url": "WireIt.util.DDResize.html#property_myConf", "access": "", "host": "WireIt.util.DDResize", "type": "property", "name": "myConf"}, {"url": "WireIt.Container.html#method_onAddWire", "access": "", "host": "WireIt.Container", "type": "method", "name": "onAddWire"}, {"url": "WireIt.Layer.html#method_onAddWire", "access": "", "host": "WireIt.Layer", "type": "method", "name": "onAddWire"}, {"url": "inputEx.Field.html#method_onAddWire", "access": "", "host": "inputEx.Field", "type": "method", "name": "onAddWire"}, {"url": "WireIt.Wire.html#method_onClick", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onClick"}, {"url": "WireIt.Container.html#method_onCloseButton", "access": "", "host": "WireIt.Container", "type": "method", "name": "onCloseButton"}, {"url": "WireIt.WiringEditor.html#method_onDelete", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "onDelete"}, {"url": "WireIt.TerminalProxy.html#method_onDrag", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "onDrag"}, {"url": "WireIt.util.DD.html#method_onDrag", "access": "", "host": "WireIt.util.DD", "type": "method", "name": "onDrag"}, {"url": "WireIt.util.DDResize.html#method_onDrag", "access": "", "host": "WireIt.util.DDResize", "type": "method", "name": "onDrag"}, {"url": "WireIt.TerminalProxy.html#method_onDragDrop", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "onDragDrop"}, {"url": "WireIt.ModuleProxy.html#method_onDragDrop", "access": "", "host": "WireIt.ModuleProxy", "type": "method", "name": "onDragDrop"}, {"url": "WireIt.TerminalProxy.html#method_onDragEnter", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "onDragEnter"}, {"url": "WireIt.TerminalProxy.html#method_onDragOut", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "onDragOut"}, {"url": "WireIt.WiringEditor.html#method_onHelp", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "onHelp"}, {"url": "WireIt.LayerMap.html#method_onLayerScroll", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "onLayerScroll"}, {"url": "WireIt.WiringEditor.html#method_onLoadSuccess", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "onLoadSuccess"}, {"url": "WireIt.Container.html#method_onMouseDown", "access": "", "host": "WireIt.Container", "type": "method", "name": "onMouseDown"}, {"url": "WireIt.LayerMap.html#method_onMouseDown", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "onMouseDown"}, {"url": "WireIt.util.DDResize.html#method_onMouseDown", "access": "", "host": "WireIt.util.DDResize", "type": "method", "name": "onMouseDown"}, {"url": "WireIt.LayerMap.html#method_onMouseMove", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "onMouseMove"}, {"url": "WireIt.Wire.html#method_onMouseMove", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onMouseMove"}, {"url": "WireIt.LayerMap.html#method_onMouseUp", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "onMouseUp"}, {"url": "WireIt.WiringEditor.html#method_onNew", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "onNew"}, {"url": "WireIt.Container.html#method_onRemoveWire", "access": "", "host": "WireIt.Container", "type": "method", "name": "onRemoveWire"}, {"url": "WireIt.Layer.html#method_onRemoveWire", "access": "", "host": "WireIt.Layer", "type": "method", "name": "onRemoveWire"}, {"url": "inputEx.Field.html#method_onRemoveWire", "access": "", "host": "inputEx.Field", "type": "method", "name": "onRemoveWire"}, {"url": "WireIt.Container.html#method_onResize", "access": "", "host": "WireIt.Container", "type": "method", "name": "onResize"}, {"url": "WireIt.WiringEditor.html#method_onSave", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "onSave"}, {"url": "WireIt.Layer.html#method_onWireClick", "access": "", "host": "WireIt.Layer", "type": "method", "name": "onWireClick"}, {"url": "WireIt.Wire.html#method_onWireClick", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onWireClick"}, {"url": "WireIt.Wire.html#method_onWireIn", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onWireIn"}, {"url": "WireIt.Layer.html#method_onWireMouseMove", "access": "", "host": "WireIt.Layer", "type": "method", "name": "onWireMouseMove"}, {"url": "WireIt.Wire.html#method_onWireMove", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onWireMove"}, {"url": "WireIt.Wire.html#method_onWireOut", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onWireOut"}, {"url": "WireIt.Container.html#property_options", "access": "", "host": "WireIt.Container", "type": "property", "name": "options"}, {"url": "WireIt.Layer.html#property_options", "access": "", "host": "WireIt.Layer", "type": "property", "name": "options"}, {"url": "WireIt.LayerMap.html#property_options", "access": "", "host": "WireIt.LayerMap", "type": "property", "name": "options"}, {"url": "WireIt.Terminal.html#property_options", "access": "", "host": "WireIt.Terminal", "type": "property", "name": "options"}, {"url": "WireIt.Wire.html#property_options", "access": "", "host": "WireIt.Wire", "type": "property", "name": "options"}, {"url": "WireIt.WiringEditor.html#property_options", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "options"}, {"url": "WireIt.Terminal.html#property_parentEl", "access": "", "host": "WireIt.Terminal", "type": "property", "name": "parentEl"}, {"url": "WireIt.Wire.html#property_parentEl", "access": "", "host": "WireIt.Wire", "type": "property", "name": "parentEl"}, {"url": "WireIt.Wire.html#method_redraw", "access": "", "host": "WireIt.Wire", "type": "method", "name": "redraw"}, {"url": "WireIt.Container.html#method_redrawAllTerminals", "access": "", "host": "WireIt.Container", "type": "method", "name": "redrawAllTerminals"}, {"url": "WireIt.Terminal.html#method_redrawAllWires", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "redrawAllWires"}, {"url": "WireIt.Container.html#method_remove", "access": "", "host": "WireIt.Container", "type": "method", "name": "remove"}, {"url": "WireIt.Terminal.html#method_remove", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "remove"}, {"url": "WireIt.Wire.html#method_remove", "access": "", "host": "WireIt.Wire", "type": "method", "name": "remove"}, {"url": "WireIt.Layer.html#method_removeAllContainers", "access": "", "host": "WireIt.Layer", "type": "method", "name": "removeAllContainers"}, {"url": "WireIt.Container.html#method_removeAllTerminals", "access": "", "host": "WireIt.Container", "type": "method", "name": "removeAllTerminals"}, {"url": "WireIt.Terminal.html#method_removeAllWires", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "removeAllWires"}, {"url": "WireIt.Layer.html#method_removeContainer", "access": "", "host": "WireIt.Layer", "type": "method", "name": "removeContainer"}, {"url": "WireIt.Container.html#method_removeFocus", "access": "", "host": "WireIt.Container", "type": "method", "name": "removeFocus"}, {"url": "WireIt.Terminal.html#method_removeWire", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "removeWire"}, {"url": "WireIt.Container.html#method_render", "access": "", "host": "WireIt.Container", "type": "method", "name": "render"}, {"url": "WireIt.ImageContainer.html#method_render", "access": "", "host": "WireIt.ImageContainer", "type": "method", "name": "render"}, {"url": "WireIt.Layer.html#method_render", "access": "", "host": "WireIt.Layer", "type": "method", "name": "render"}, {"url": "WireIt.Terminal.html#method_render", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "render"}, {"url": "WireIt.FormContainer.html#method_render", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "render"}, {"url": "inputEx.Field.html#method_render", "access": "", "host": "inputEx.Field", "type": "method", "name": "render"}, {"url": "WireIt.WiringEditor.html#method_renderAccordion", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "renderAccordion"}, {"url": "WireIt.WiringEditor.html#method_renderButtons", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "renderButtons"}, {"url": "WireIt.FormContainer.html#method_renderForm", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "renderForm"}, {"url": "WireIt.WiringEditor.html#method_renderLoadPanel", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "renderLoadPanel"}, {"url": "WireIt.WiringEditor.html#method_renderPropertiesForm", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "renderPropertiesForm"}, {"url": "WireIt.WiringEditor.html#method_renderSavedStatus", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "renderSavedStatus"}, {"url": "inputEx.Field.html#method_renderTerminal", "access": "", "host": "inputEx.Field", "type": "method", "name": "renderTerminal"}, {"url": "WireIt.WiringEditor.html#method_saveModule", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "saveModule"}, {"url": "WireIt.WiringEditor.html#method_saveModuleFailure", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "saveModuleFailure"}, {"url": "WireIt.WiringEditor.html#method_saveModuleSuccess", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "saveModuleSuccess"}, {"url": "WireIt.Scissors.html#method_scissorClick", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "scissorClick"}, {"url": "WireIt.LayerMap.html#method_scrollLayer", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "scrollLayer"}, {"url": "WireIt.FormContainer.html#method_setBackReferenceOnFieldOptionsRecursively", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "setBackReferenceOnFieldOptionsRecursively"}, {"url": "WireIt.Container.html#method_setBody", "access": "", "host": "WireIt.Container", "type": "method", "name": "setBody"}, {"url": "WireIt.CanvasElement.html#method_SetCanvasRegion", "access": "", "host": "WireIt.CanvasElement", "type": "method", "name": "SetCanvasRegion"}, {"url": "WireIt.Terminal.html#method_setDropInvitation", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "setDropInvitation"}, {"url": "WireIt.Container.html#method_setFocus", "access": "", "host": "WireIt.Container", "type": "method", "name": "setFocus"}, {"url": "WireIt.Container.html#method_setOptions", "access": "", "host": "WireIt.Container", "type": "method", "name": "setOptions"}, {"url": "WireIt.ImageContainer.html#method_setOptions", "access": "", "host": "WireIt.ImageContainer", "type": "method", "name": "setOptions"}, {"url": "WireIt.InOutContainer.html#method_setOptions", "access": "", "host": "WireIt.InOutContainer", "type": "method", "name": "setOptions"}, {"url": "WireIt.Layer.html#method_setOptions", "access": "", "host": "WireIt.Layer", "type": "method", "name": "setOptions"}, {"url": "WireIt.LayerMap.html#method_setOptions", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "setOptions"}, {"url": "WireIt.Terminal.html#method_setOptions", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "setOptions"}, {"url": "WireIt.util.TerminalInput.html#method_setOptions", "access": "", "host": "WireIt.util.TerminalInput", "type": "method", "name": "setOptions"}, {"url": "WireIt.util.TerminalOutput.html#method_setOptions", "access": "", "host": "WireIt.util.TerminalOutput", "type": "method", "name": "setOptions"}, {"url": "WireIt.Wire.html#method_setOptions", "access": "", "host": "WireIt.Wire", "type": "method", "name": "setOptions"}, {"url": "WireIt.WiringEditor.html#method_setOptions", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "setOptions"}, {"url": "WireIt.FormContainer.html#method_setOptions", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "setOptions"}, {"url": "inputEx.Field.html#method_setOptions", "access": "", "host": "inputEx.Field", "type": "method", "name": "setOptions"}, {"url": "WireIt.Scissors.html#method_setPosition", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "setPosition"}, {"url": "WireIt.util.Anim.html#method_setTerminals", "access": "", "host": "WireIt.util.Anim", "type": "method", "name": "setTerminals"}, {"url": "WireIt.util.DD.html#method_setTerminals", "access": "", "host": "WireIt.util.DD", "type": "method", "name": "setTerminals"}, {"url": "WireIt.Container.html#method_setValue", "access": "", "host": "WireIt.Container", "type": "method", "name": "setValue"}, {"url": "WireIt.FormContainer.html#method_setValue", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "setValue"}, {"url": "WireIt.Layer.html#method_setWiring", "access": "", "host": "WireIt.Layer", "type": "method", "name": "setWiring"}, {"url": "WireIt.Scissors.html#method_show", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "show"}, {"url": "WireIt.WireIt.html#method_sn", "access": "", "host": "WireIt.WireIt", "type": "method", "name": "sn"}, {"url": "WireIt.LayerMap.html#method_Spring", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "Spring"}, {"url": "WireIt.TerminalProxy.html#method_startDrag", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "startDrag"}, {"url": "WireIt.ModuleProxy.html#method_startDrag", "access": "", "host": "WireIt.ModuleProxy", "type": "method", "name": "startDrag"}, {"url": "WireIt.LayerMap.html#method_startDynamicLayout", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "startDynamicLayout"}, {"url": "WireIt.LayerMap.html#method_stopDynamicLayout", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "stopDynamicLayout"}, {"url": "WireIt.TerminalProxy.html#property_termConfig", "access": "", "host": "WireIt.TerminalProxy", "type": "property", "name": "termConfig"}, {"url": "WireIt.Scissors.html#property__terminal", "access": "", "host": "WireIt.Scissors", "type": "property", "name": "_terminal"}, {"url": "WireIt.TerminalProxy.html#property_terminal", "access": "", "host": "WireIt.TerminalProxy", "type": "property", "name": "terminal"}, {"url": "WireIt.Wire.html#property_terminal1", "access": "", "host": "WireIt.Wire", "type": "property", "name": "terminal1"}, {"url": "WireIt.Wire.html#property_terminal2", "access": "", "host": "WireIt.Wire", "type": "property", "name": "terminal2"}, {"url": "WireIt.Container.html#property_terminals", "access": "", "host": "WireIt.Container", "type": "property", "name": "terminals"}, {"url": "WireIt.WiringEditor.html#method_updateLoadPanelList", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "updateLoadPanelList"}, {"url": "WireIt.WireIt.html#property_util", "access": "", "host": "WireIt.WireIt", "type": "property", "name": "util"}, {"url": "WireIt.Wire.html#method_wireDrawnAt", "access": "", "host": "WireIt.Wire", "type": "method", "name": "wireDrawnAt"}, {"url": "WireIt.util.Anim.html#property__WireItTerminals", "access": "", "host": "WireIt.util.Anim", "type": "property", "name": "_WireItTerminals"}, {"url": "WireIt.util.DD.html#property__WireItTerminals", "access": "", "host": "WireIt.util.DD", "type": "property", "name": "_WireItTerminals"}, {"url": "WireIt.Container.html#property_wires", "access": "", "host": "WireIt.Container", "type": "property", "name": "wires"}, {"url": "WireIt.Layer.html#property_wires", "access": "", "host": "WireIt.Layer", "type": "property", "name": "wires"}, {"url": "WireIt.Terminal.html#property_wires", "access": "", "host": "WireIt.Terminal", "type": "property", "name": "wires"}];
</script>
</body>
</html>
